home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / inventor / models / sphereManip.iv < prev   
Encoding:
Text File  |  1994-08-02  |  778 b   |  30 lines

  1. #Inventor V2.0 ascii
  2. # Self Manipulating Sphere
  3. Separator {
  4.  
  5.     # Interface for sphere control
  6.     Separator {
  7.         BaseColor { rgb 1 0 0 }
  8.         DEF PROF_PT_DRAGGER Translate1Dragger {
  9.             translation 1 0 0
  10.             translator DEF DRAG_CUBE Separator {
  11.                 Cube { width .2 height .2 depth .2 }
  12.             }
  13.             translatorActive DEF DRAG_YELLOW_CUBE Separator {
  14.                 BaseColor { rgb 1 1 0 }
  15.                 Cube { width .2 height .2 depth .2 }
  16.             }
  17.         }
  18.     }
  19.     # Sphere, controlled by above dragger
  20.     Separator {
  21.         BaseColor { rgb .8 .8 .8 }
  22.         Sphere {
  23.             radius = DecomposeVec3f {
  24.                 vector = USE PROF_PT_DRAGGER . translation
  25.             }
  26.             . x
  27.         }
  28.     }
  29. }
  30.